package com.sasis.model;
// Generated 2007-8-1 18:07:12 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_SERVICE_VISITANT"
 *     
 */

public class VipServiceVisitant extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer vipServiceSheetId;
    private String visitantRoomStatus;
    private String visitantRoomSeat;
    private String visitantRoomFeature;
    private Integer visitantRoomOperator;
    private Timestamp visitantRoomOperateDate;
    protected String passengerStateName;
    protected Integer visitantRoomStatusId;
    protected Integer visitantRoomSeatId;


    // Constructors

    public Integer getVisitantRoomSeatId() {
		return visitantRoomSeatId;
	}


	public void setVisitantRoomSeatId(Integer visitantRoomSeatId) {
		this.visitantRoomSeatId = visitantRoomSeatId;
	}


	public Integer getVisitantRoomStatusId() {
		return visitantRoomStatusId;
	}


	public void setVisitantRoomStatusId(Integer visitantRoomStatusId) {
		this.visitantRoomStatusId = visitantRoomStatusId;
	}


	public String getPassengerStateName() {
		return passengerStateName;
	}


	public void setPassengerStateName(String passengerStateName) {
		this.passengerStateName = passengerStateName;
	}


	/** default constructor */
    public VipServiceVisitant() {
    }

    
    /** full constructor */
    public VipServiceVisitant(Integer vipServiceSheetId, String visitantRoomStatus, String visitantRoomSeat, String visitantRoomFeature, Integer visitantRoomOperator, Timestamp visitantRoomOperateDate) {
        this.vipServiceSheetId = vipServiceSheetId;
        this.visitantRoomStatus = visitantRoomStatus;
        this.visitantRoomSeat = visitantRoomSeat;
        this.visitantRoomFeature = visitantRoomFeature;
        this.visitantRoomOperator = visitantRoomOperator;
        this.visitantRoomOperateDate = visitantRoomOperateDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="VIP_SERVICE_SHEET_ID"
     *             length="22"
     *         
     */

    public Integer getVipServiceSheetId() {
        return this.vipServiceSheetId;
    }
    
    public void setVipServiceSheetId(Integer vipServiceSheetId) {
        this.vipServiceSheetId = vipServiceSheetId;
    }
    /**       
     *      *            @hibernate.property
     *             column="VISITANT_ROOM_STATUS"
     *             length="22"
     *         
     */

    public String getVisitantRoomStatus() {
        return this.visitantRoomStatus;
    }
    
    public void setVisitantRoomStatus(String visitantRoomStatus) {
        this.visitantRoomStatus = visitantRoomStatus;
    }
    /**       
     *      *            @hibernate.property
     *             column="VISITANT_ROOM_SEAT"
     *             length="8"
     *         
     */

    public String getVisitantRoomSeat() {
        return this.visitantRoomSeat;
    }
    
    public void setVisitantRoomSeat(String visitantRoomSeat) {
        this.visitantRoomSeat = visitantRoomSeat;
    }
    /**       
     *      *            @hibernate.property
     *             column="VISITANT_ROOM_FEATURE"
     *             length="1024"
     *         
     */

    public String getVisitantRoomFeature() {
        return this.visitantRoomFeature;
    }
    
    public void setVisitantRoomFeature(String visitantRoomFeature) {
        this.visitantRoomFeature = visitantRoomFeature;
    }
    /**       
     *      *            @hibernate.property
     *             column="VISITANT_ROOM_OPERATOR"
     *             length="22"
     *         
     */

    public Integer getVisitantRoomOperator() {
        return this.visitantRoomOperator;
    }
    
    public void setVisitantRoomOperator(Integer visitantRoomOperator) {
        this.visitantRoomOperator = visitantRoomOperator;
    }
    /**       
     *      *            @hibernate.property
     *             column="VISITANT_ROOM_OPERATE_DATE"
     *             length="7"
     *         
     */

    public Timestamp getVisitantRoomOperateDate() {
        return this.visitantRoomOperateDate;
    }
    
    public void setVisitantRoomOperateDate(Timestamp visitantRoomOperateDate) {
        this.visitantRoomOperateDate = visitantRoomOperateDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("vipServiceSheetId").append("='").append(getVipServiceSheetId()).append("' ");			
      buffer.append("visitantRoomStatus").append("='").append(getVisitantRoomStatus()).append("' ");			
      buffer.append("visitantRoomSeat").append("='").append(getVisitantRoomSeat()).append("' ");			
      buffer.append("visitantRoomFeature").append("='").append(getVisitantRoomFeature()).append("' ");			
      buffer.append("visitantRoomOperator").append("='").append(getVisitantRoomOperator()).append("' ");			
      buffer.append("visitantRoomOperateDate").append("='").append(getVisitantRoomOperateDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipServiceVisitant) ) return false;
		 VipServiceVisitant castOther = ( VipServiceVisitant ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getVipServiceSheetId()==castOther.getVipServiceSheetId()) || ( this.getVipServiceSheetId()!=null && castOther.getVipServiceSheetId()!=null && this.getVipServiceSheetId().equals(castOther.getVipServiceSheetId()) ) )
 && ( (this.getVisitantRoomStatus()==castOther.getVisitantRoomStatus()) || ( this.getVisitantRoomStatus()!=null && castOther.getVisitantRoomStatus()!=null && this.getVisitantRoomStatus().equals(castOther.getVisitantRoomStatus()) ) )
 && ( (this.getVisitantRoomSeat()==castOther.getVisitantRoomSeat()) || ( this.getVisitantRoomSeat()!=null && castOther.getVisitantRoomSeat()!=null && this.getVisitantRoomSeat().equals(castOther.getVisitantRoomSeat()) ) )
 && ( (this.getVisitantRoomFeature()==castOther.getVisitantRoomFeature()) || ( this.getVisitantRoomFeature()!=null && castOther.getVisitantRoomFeature()!=null && this.getVisitantRoomFeature().equals(castOther.getVisitantRoomFeature()) ) )
 && ( (this.getVisitantRoomOperator()==castOther.getVisitantRoomOperator()) || ( this.getVisitantRoomOperator()!=null && castOther.getVisitantRoomOperator()!=null && this.getVisitantRoomOperator().equals(castOther.getVisitantRoomOperator()) ) )
 && ( (this.getVisitantRoomOperateDate()==castOther.getVisitantRoomOperateDate()) || ( this.getVisitantRoomOperateDate()!=null && castOther.getVisitantRoomOperateDate()!=null && this.getVisitantRoomOperateDate().equals(castOther.getVisitantRoomOperateDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getVipServiceSheetId() == null ? 0 : this.getVipServiceSheetId().hashCode() );
         result = 37 * result + ( getVisitantRoomStatus() == null ? 0 : this.getVisitantRoomStatus().hashCode() );
         result = 37 * result + ( getVisitantRoomSeat() == null ? 0 : this.getVisitantRoomSeat().hashCode() );
         result = 37 * result + ( getVisitantRoomFeature() == null ? 0 : this.getVisitantRoomFeature().hashCode() );
         result = 37 * result + ( getVisitantRoomOperator() == null ? 0 : this.getVisitantRoomOperator().hashCode() );
         result = 37 * result + ( getVisitantRoomOperateDate() == null ? 0 : this.getVisitantRoomOperateDate().hashCode() );
         return result;
   }   





}
